import request from '@/utils/request'

// 查询销售出库单列表
export function listSaleissuebill(query) {
  return request({
    url: '/settlementCenter/basebill/saleissuebill/list',
    method: 'get',
    params: query
  })
}

// 查询销售出库单详细
export function getSaleissuebill(id) {
  return request({
    url: '/settlementCenter/basebill/saleissuebill/' + id,
    method: 'get'
  })
}

// 新增销售出库单
export function addSaleissuebill(data) {
  return request({
    url: '/settlementCenter/basebill/saleissuebill',
    method: 'post',
    data: data
  })
}

// 修改销售出库单
export function updateSaleissuebill(data) {
  return request({
    url: '/settlementCenter/basebill/saleissuebill',
    method: 'put',
    data: data
  })
}

// 删除销售出库单
export function delSaleissuebill(id) {
  return request({
    url: '/settlementCenter/basebill/saleissuebill/' + id,
    method: 'delete'
  })
}
